package com.probiz.estore.system.service;

import java.util.List;

import com.probiz.estore.common.model.system.TaxRate;
import com.probiz.estore.core.service.GenericManager;


/**
 * TaxRate Business Delegate (Proxy) Interface to handle communication between web and
 * persistence layer.
 * Developer introduced interfaces should be declared here. Won't get overwritten.
 *
 */
public interface TaxRateManager extends GenericManager<TaxRate>{
	
	
	/**
	 * 检查是否存在已有的税率
	 * @return
	 */
	public boolean checkExist(TaxRate entity);
	
	/**
	 * 根据地区id和商品类型id获得税率列表
	 * @param regionId
	 * @param productTypeId
	 * @return
	 */
	public List<TaxRate> getTaxRateListByRegionIdAndProductTypeId(Integer regionId, Integer productTypeId);
	/**
	 * 获得税率个数
	 * @return
	 */
	public Long countAll();
}
